package com.bjpowernode.front.controller;

import com.bjpowernode.api.service.*;
import com.bjpowernode.front.service.SmsService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.data.redis.core.StringRedisTemplate;

import javax.annotation.Resource;

/**
 * Package:com.bjpowernode.front.controller
 * Date:2022/3/1 16:28
 */
public class BaseController {

    //声明公共的方法，属性的等

    @Resource
    protected StringRedisTemplate stringRedisTemplate;
    //平台信息服务
    @DubboReference(interfaceClass = PlatBaseInfoService.class, version = "1.0")
    protected PlatBaseInfoService platBaseInfoService;
    //产品服务
    @DubboReference(interfaceClass = ProductService.class, version = "1.0")
    protected ProductService productService;
    //投资服务
    @DubboReference(interfaceClass = InvestService.class, version = "1.0")
    protected InvestService investService;
    //用户服务
    @DubboReference(interfaceClass = UserService.class, version = "1.0")
    protected UserService userService;
    /*    //短信服务
        @DubboReference(interfaceClass = SmsService.class,version = "1.0")
        protected SmsService smsService;*/

    //充值查询服务
    @DubboReference(interfaceClass = RechargeService.class, version = "1.0")
    protected RechargeService rechargeService;
}
